﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SocialFront.Providers.Member;

namespace SocialFront.Web.usercontrols.Membership
{
    public partial class GlobalMemberList : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            lvMembers.DataSource = MemberProvider.Provider.GetAllMembers();
            lvMembers.DataBind();
        }

        protected void lvMembers_PagePropertiesChanging(object sender, PagePropertiesChangingEventArgs e)
        {
            this.ItemDataPager.SetPageProperties(e.StartRowIndex, e.MaximumRows, false);
            lvMembers.DataBind();
        }
    }
}